<?php 
	
	class Admin_Controller extends MY_Controller{
			protected $_data;
		public function __construct(){ 
			parent::__construct();
			$mod=$this->uri->segment(1);					// = admin
			$this->_data['module']= $mod; 					// $data['module'] = admin
			$this->_data['path']="$mod/template";			// 	admin/template in views 
				if($this->session->userdata("level")!=2 && $this->uri->segment(2)!= "verify"){
				redirect(base_url()."admin/verify/login"); 
			} 
		
		}	
}

	
	
?>